// 数据请求

setTimeout(function () {
    if(!sessionStorage.getItem('linesData')){
        $.ajax({
            url:'/getAirportOnLineData_1',
            type:'get',
            dataType:'jsonp',
            success:(res)=>{
                var _data = res;
                $.ajax({
                    url:'/getAirportOnLineData_2',
                    type:'get',
                    dataType:'jsonp',
                    success:(ares)=>{
                        $.ajax({
                            url:'/getAirportOnLineData_3',
                            type:'get',
                            dataType:'jsonp',
                            success:(bres)=>{
                                var _linesData = { success: $.extend({}, ares.success, _data.success, bres.success) };
                                sessionStorage.setItem('linesData',JSON.stringify(_linesData));
                            }
                        })
                    }
                })
            }
        });
    }
// $.ajax({
//     url:'/getAirportOnLineData',
//     type:'get',
//     dataType:'jsonp',
//     success:(data)=>{
//         sessionStorage.setItem('linesData',JSON.stringify(data));
//     }
// })
    ;$.ajax({
        url:'/restful/getCityDatas',
        type:'get',
        dataType:'jsonp',
        success:(data)=>{
            sessionStorage.setItem('cityData',JSON.stringify(data.success.cityData));
        }
    }) ;
    $.ajax({
        url:'/restful/getShippingDatas',
        type:'get',
        dataType:'jsonp',
        success:(data)=>{
            sessionStorage.setItem('department',JSON.stringify(data.success.cityData));
        }
    });
    $.ajax({
        url:'/restful/getAirportJosnDatas',
        type:'get',
        dataType:'jsonp',
        success:(data)=>{
            sessionStorage.setItem('airportData',JSON.stringify(data.success.cityData));
        }
    });
    $.ajax({
        url:'/getAirportViewData',
        type:'get',
        dataType:'jsonp',
        success:(data)=>{
            sessionStorage.setItem('airjw',JSON.stringify(data));
        }
    });
//   机场点数据
},4000)
